//
//  SingerDetailTableViewCell.m
//  MusicPlayer
//
//  Created by apple on 15/5/23.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SingerDetailTableViewCell.h"
#define Width [UIScreen mainScreen].bounds.size.width
#define Height [UIScreen mainScreen].bounds.size.height
@implementation SingerDetailTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)dealloc
{
    [_aLabel release];
    [_imageview release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
        self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
        if (self) {
            self.selectionStyle = UITableViewCellSelectionStyleNone;
            self.aLabel = [[UILabel alloc] initWithFrame:CGRectMake(115/375.0*Width, 50/667.0*Height, 120/375.0*Width, 30/667.0*Height)];
            self.aLabel.textAlignment = 1;
            self.aLabel.font = [UIFont systemFontOfSize:17/375.0*Width];
    
            self.imageview = [[UIImageView alloc] initWithFrame:CGRectMake(5/375.0*Width, 10/667.0*Height, 100/375.0*Width, 100/667.0*Height)];
            [self.contentView addSubview:self.aLabel];
            [self.contentView addSubview:self.imageview];
//            图片变成圆形
            self.imageview.layer.cornerRadius = 50/375.0*Width;
            self.imageview.clipsToBounds = YES;
            [self.aLabel release];
            [self.imageview release];
    
        }
        return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
